package cn._2dland.sakushi.jdo;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Question {
	/** 消息ID */
	@PrimaryKey
	private String id;

	/** 发送者ID */
	@Persistent
	private String userId;

	/** 发送者名称 */
	@Persistent
	private String userName;

	/** 消息内容 */
	@Persistent
	private String text;

	/** 消息源ID */
	@Persistent
	private String sourceId;

	/** 消息状态 */
	@Persistent
	private int status;

	public Question(String id, String userId, String userName, String text) {
		super();
		this.id = id;
		this.userId = userId;
		this.userName = userName;
		this.text = text;
		this.status = 0;
	}

	/** 消息ID */
	public String getId() {
		return id;
	}

	/** 发送者ID */
	public String getUserId() {
		return userId;
	}

	/** 发送者名称 */
	public String getUserName() {
		return userName;
	}

	/** 消息内容 */
	public String getText() {
		return text;
	}

	/** 原消息ID */
	public String getSourceId() {
		return sourceId;
	}
	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	/** 处理状态 */
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
}
